package com.yami.shop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.model.RefundOrderSettlement;
import org.apache.ibatis.annotations.Param;


/**
 * @author yami
 */
public interface RefundOrderSettlementMapper extends BaseMapper<RefundOrderSettlement> {

    /**
     * 将退款结算订单标记为退款成功
     * @param refundPayNo 退款支付单号
     * @param version 版本
     * @return 是否更新成功
     */
    int refundSuccess(@Param("refundPayNo") String refundPayNo, @Param("version") Integer version);

    /**
     * 将退款结算订单标记为退款失败
     * @param refundPayNo 退款支付单号
     * @param version 版本
     * @return 是否更新成功
     */
    int refundFail(@Param("refundPayNo") String refundPayNo, @Param("version") Integer version);
}
